import {createApp} from 'vue'
import Index from './views/Index'
import {createRouter, createWebHashHistory} from 'vue-router'

const routes = [
    {name: 'clock', path: '/', component: () => import('./views/clock/Clock')},
    {name: 'musicList', path: '/music', component: () => import('./views/music_list/MusicList')},
    {name: 'sysSetting', path: '/setting', component: () => import('./views/setting/Setting')},
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

const app = createApp(Index)
app.use(router)
app.mount('#app')
export default app